<template>
  <div>
    <Header></Header>
    <router-view></router-view>
    <Footer></Footer>
  </div>
</template>

<script>
import Header from "./components/Header";
import Footer from "./components/Footer";

export default {
  name: "App",
  components: {
    Header,
    Footer,
  },
  mounted() {
    // 派发一个action获取商品信息 在这只发送一次
    this.$store.dispatch("categoryList");
    // console.log("lyl");
  },
};
</script>

<style></style>
